﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace UCNKompetenceBors.Model
{
    public class Purchase
    {
        private int _purchaseID;
        private string _title;
        private string _description;
        private Category _category;
        private DateTime _createdDate;
        private LoginUser _user;
        private bool _isActive;

        public int PurchaseID
        {
            get { return _purchaseID; }
        }

        public string Title
        {
            get { return _title; }
            set { _title = value; }
        }

        public string Description
        {
            get { return _description; }
            set { _description = value; }
        }

        public Category Category
        {
            get { return _category; }
            set { _category = value; }
        }

        public DateTime CreatedDate
        {
            get { return _createdDate; }
            set { _createdDate = value; }
        }

        public LoginUser User
        {
            get { return _user; }
            set { _user = value; }
        }

        public bool IsActive
        {
            get { return _isActive; }
            set { _isActive = value; }
        }

        public Purchase(int purchaseID)
        {
            _purchaseID = purchaseID;
            _title = "";
            _description = "";
            _category = null;
            _createdDate = DateTime.Now;
            _user = null;
            _isActive = true;
        }

        public Purchase(int purchaseID, string title, string description, Category category, DateTime createdDate, LoginUser user, bool isActive)
        {
            _purchaseID = purchaseID;
            _title = title;
            _description = description;
            _category = category;
            _createdDate = createdDate;
            _user = user;
            _isActive = isActive;
        }
    }
}